package com.ganzi.ganziserver.service.imp;

import com.ganzi.ganziserver.core.*;
import com.ganzi.ganziserver.dao.ControlLogDao;
import com.ganzi.ganziserver.dao.FanCollectDao;
import com.ganzi.ganziserver.dao.FanInfromationDao;
import com.ganzi.ganziserver.dao.SchoolInformationDao;
import com.ganzi.ganziserver.service.CollectService;
import com.ganzi.ganziserver.service.ControlLogService;
import com.ganzi.ganziserver.utils.GetTime;
import org.apache.shiro.SecurityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectServiceImp implements CollectService {

    @Autowired
    FanCollectDao fanCollectDao;
    @Override
    public List<TempCollect> getCollectBySchool(long schoolId) {
        try {
            List<TempCollect> m = fanCollectDao.findFanCollectByschoolIdFortemp(schoolId);
            return  m;
        } catch (Exception e) {
            return null;
        }
    }
}
